CN1272944C - Reliable one to mang data transmission method - Google Patents

Reliable one to mang data transmission method Download PDF

Info

Publication number
CN1272944C
CN1272944C CNB031214843A CN03121484A CN1272944C CN 1272944 C CN1272944 C CN 1272944C CN B031214843 A CNB031214843 A CN B031214843A CN 03121484 A CN03121484 A CN 03121484A CN 1272944 C CN1272944 C CN 1272944C
Authority
CN
China
Prior art keywords
data
receiving terminal
terminal
receiving
transmitting terminal
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
CNB031214843A
Other languages
Chinese (zh)
Other versions
CN1534941A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB031214843A priority Critical patent/CN1272944C/en
Publication of CN1534941A publication Critical patent/CN1534941A/en
Application granted granted Critical
Publication of CN1272944C publication Critical patent/CN1272944C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention provides a reliable one-to-many data transmission method applied to a network which at least comprises a sending terminal and two receiving terminals. The sending terminal segments data to be sent, and orderly sends the data after segmenting to the receiving terminals; the receiving terminals start to receive the data and send back response signals to the sending terminal according to different receiving conditions; the sending terminal determines resending contents according to the response signals of the receiving terminals; if the number of answer messages received by the sending terminal is equal to the number of the answer messages at the receiving terminals, data sending is totally completed. The present invention changes an answer receiving mode of the answer messages into a packet lack response mode, and the present invention avoids the disadvantage of low transmission efficiency brought by that an original TCP protocol answers when each data packet is received. In addition, in the present invention, the situation whether packets are lost is determined when the receiving terminals receive the messages, and if the packets are lost, the sending terminal is immediately informed to resend the packets; therefore, the process of overtime wait is omitted, and the utilization ratio of the network is greatly enhanced.

Description

A kind of reliable one-to-many data transmission method
Technical field
The present invention relates to computer realm, specifically, relate in the computer network transmitting terminal carries out method from transfer of data to a plurality of receiving terminals.
Background technology
With the computer transmitted data on network is requisite technology in the computer realm.The existing main flow network transmission protocol is a TCP/IP protocol suite, whether reliable (whether guaranteeing that promptly transmission is correct) divides according to transfer of data, each sub-protocol of TCP/IP protocol suite can be divided into reliable transmission and non-reliable transmission two classes, wherein reliable transport protocol has only connection-oriented transport layer sub-protocol Transmission Control Protocol, and other agreement all belongs to non-reliable transmission as the udp protocol of transport layer and the IP agreement of network layer.Transmission Control Protocol is to connect at man-to-man network virtual, that is to say, has only the two ends of mutual communication with the connection of Transmission Control Protocol foundation.The basic principle that adopts Transmission Control Protocol to carry out transfer of data is, host A is set up TCP with host B and is connected, host A sends a packet to host B, suppose that this packet is divided into 2 groupings (grouping 1 and grouping 2) to be sent, then host A sends grouping 1 earlier, when receiving grouping 1 and beaming back a confirmation message Deng host B, send grouping 2 again, up to whole transmissions success or overtime cause connecting disconnect, adopt Transmission Control Protocol transmission data characteristic to be as can be seen: 1) each grouping all to be needed verification once, to confirm whether receive; 2) transmission of a back grouping must wait for that the affirmation message of previous grouping arrives, and the transmission between two groupings has certain delay.
At present if the transfer of data of realization one-to-many can adopt following three kinds of methods.
First method is to set up the method that a plurality of TCP connect, be that the host A of transmitting terminal is set up TCP with host B, C, the D of receiving terminal respectively and is connected, when a network message will be when host A mails to host B, C, D, then need earlier message is sent to host B according to the data transmission method of Transmission Control Protocol, size according to message, finish after the transmitting-receiving through checking prediction message several times, and then send to host C and main frame D after the same method successively.Therefore, its efficiency of transmission is very low, and transfer of data needs the long time.In addition, under Windows, the TCP linking number of main frame is very limited, and packet of every transmission all needs to carry out verification, and this also greatly reduces the range of application of this method.If in the network N platform receiving terminal is arranged now, be that the situation of P is calculated then according to drop probabilities, the cost of the successful X of an every transmission packet is to carry out S 1 = Σ n = 0 ∞ NXP n Inferior user data sends and S 2=X response packet sends altogether S = Σ n = 0 ∞ XNP n + X Inferior.P=0 is to the summation of series in sampling, then S 1=NX, S 2=X, S=(N+1) X; P=0.5 is to the summation of series in sampling, then S 1=2NX, S 2=X, S=(2N+1) X, clearly this has greatly wasted the bandwidth of network.
Obviously,, adopt non-reliable udp protocol to transmit data and can reach this purpose, but can not ensure the reliable transmission of data if can data be sent to host B simultaneously, C, D will improve efficiency of transmission greatly.
Second method is to realize reliable transmission in the verification that the mechanism of application layer imitation TCP is carried out one-to-many, and this method is than first method optimization.When the transmitting terminal host A sends message, receiving terminal host B, C, D are the literary compositions of receiving telegraph simultaneously, if wherein any one is received certain message, all to send the response message of expression " this section message is received " to host A, all returned response message up to all receiving terminals.If certain main frame is not received this message, then host A replenishes and sends data.Supposing has N platform receiving terminal in the present network, be that the situation of P is calculated according to drop probabilities then, and the cost of the successful X of an every transmission packet is to carry out S 1 = Σ n = 0 ∞ XP n Inferior user data sends and S 2=X response packet sends altogether S = Σ n = 0 ∞ XP n + X Inferior.P=0 is to the summation of series in sampling, then S 1=X, S 2=X, S=2X; P=0.5 is to the summation of series in sampling, then S 1=2X, S 2=X, S=3X.As can be seen, this method also has to a certain degree waste to the limited network bandwidth.In addition, this method is regularly to determine to retransmit message, network was not used in some time periods at all, if there is the situation of packet loss, then message is (can imagination bigger, need the burst of TCP to handle) need a time out period at least from beginning to be transferred to transmit to finish fully, reduced the utilance of network.
In addition, can also adopt the mode of multi-process to realize the transfer of data of one-to-many, promptly setting up TCP with each process with a receiving terminal is connected, this method has following several shortcoming: 1) maximum TCP connects that to set up data be conditional under most Windows operating systems, wherein Windows95,98, NT operating system are different with Windows2000, general upper limit number is in 100 under default configuration, though and Windows2000 can also be subjected to the restriction of resource without limits; 2) connect the same data of transmission with a plurality of TCP, can cause the huge waste of the network bandwidth; 3) connect a large amount of simultaneously transmission data with a plurality of TCP and form network congestion easily; 4) in computer, set up so a plurality of threads and need very big overhead.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of reliable one-to-many data transmission method, to solve the problem that efficiency of transmission is low, network utilization is low that exists in the prior art.
One-to-many data transmission method of the present invention is applied to comprise at least the local area network (LAN) of a transmitting terminal and two receiving terminals, may further comprise the steps:
One, transmitting terminal carries out segmentation with data to be sent, and successively the data after the segmentation is sent to receiving terminal;
Two, receiving terminal begins to receive data;
Three, receiving terminal determines whether to send response signal to transmitting terminal according to reception condition: if certain receiving terminal has successfully received the total data of current transmission, then submit to transmitting terminal and receive successful response message; If certain receiving terminal has been lost certain one piece of data in the whole data, then this receiving terminal sends the message that the request specified packet is retransmitted to transmitting terminal at once; If certain receiving terminal has been lost the final stage of whole data, then this receiving terminal does not send response message;
Four, transmitting terminal is determined retransmitted content according to the response signal of receiving terminal: if the not response in the delay time of regulation of certain receiving terminal, then transmitting terminal sends the final stage data to this receiving terminal; If the message that certain receiving terminal request specified packet is retransmitted, then transmitting terminal sends requested packets once again;
If the response message number that five transmitting terminals receive equates that with the number of receiving terminal then this secondary data sends and all finishes.
The present invention changes scarce bag response mode into by the response mode of receiving with response message, avoid original Transmission Control Protocol whenever to receive a packet and just replied the low shortcoming of being brought of efficiency of transmission, if N platform receiving terminal in the network, be that the situation of P is calculated according to drop probabilities then, the successful X of an every transmission packet need carry out S 1 = Σ n = 0 ∞ XP n Inferior user data send and S 2 = Σ n = 1 ∞ P n X Inferior response packet sends altogether S = Σ n = 0 ∞ XP n + Σ n = 1 ∞ P n X Inferior.P=0 is to the summation of series in sampling, then S 1=X, S 2=0, S=X; P=0.5 is to the summation of series in sampling, then S 1=2X, S 2=X, S=3X.As can be seen, the S after employing the inventive method 1S with the prior art second method 1Identical, different have only S 2, when P when 0 changes to 0.5, S of the present invention 2Changing Pattern be from 0 to X, and S in the second approach 2Changing Pattern be from 2X to X, simultaneously because network packet loss rate may maintain below 0.5 hardly, therefore adopt the present invention on the amount of transmission data, also to obtain certainly.In addition, in the present invention, receiving terminal has just determined whether packet drop when receiving message, if having then notify transmitting terminal to retransmit at once, thereby has omitted the process of waiting-timeout, has improved the utilization ratio of network greatly.
Description of drawings
Fig. 1 is the schematic diagram of the network of the method for the invention application;
Fig. 2 is the flow chart of one-to-many data transmission method of the present invention.
Embodiment
Local area network (LAN) as shown in Figure 1 comprises a transmitting terminal main frame and n receiving terminal main frame, realizes that the reliable data transmission of one-to-many just is meant the transmission course that data is sent to reliably other all receiving terminals from transmitting terminal.
Realize the reliable data transmission of one-to-many, the present invention has adopted the response mode of receiving with response message to change scarce bag response mode into, promptly in a data packet sequence, receiving terminal only asks transmitting terminal that transmitting terminal has been sent but own unreceived message resends, and the message of having received is not responsed.
At first, transmitting terminal carries out segmentation with data to be sent, and successively data after the segmentation is sent to receiving terminal, and receiving terminal begins to receive data.
If receiving terminal has successfully received the total data of current transmission, then receiving terminal is submitted to transmitting terminal and is received successful response message; If the response message number that transmitting terminal receives equates with the number of receiving terminal, represent then that this secondary data sends all to finish.
If certain receiving terminal has been lost the final stage of whole data, then this receiving terminal does not send response message, if transmitting terminal is not received the response message of the reception success that corresponding receiving terminal is submitted in official hour (delay time), then transmitting terminal sends the final stage data to this receiving terminal.If receiving terminal receives successfully, then submit to and receive successful response message to transmitting terminal.
If certain receiving terminal has been lost certain one piece of data in the whole data, then this receiving terminal sends the message that the request specified packet is retransmitted to transmitting terminal, after transmitting terminal receives this message, receiving terminal institute requested packets is sent once again, after receiving terminal is received retransmission data packet may, be integrated into appointed positions, and send response message to transmitting terminal.In order to improve the efficient of transmission, the repeating transmission number of times can also be set at transmitting terminal.
For delay time and repeating transmission number of times, can carry out dynamic-configuration according to network conditions.
In said process, when also not responding if certain receiving terminal has surpassed the repeating transmission number of times of regulation, then transmitting terminal cancellation and this receiving terminal is connected; If receiving terminal has been submitted new feedback message to during this period, then transmitting terminal rebulids and being connected of this receiving terminal.
Illustrate below by a specific embodiment.Certain local area network (LAN) comprises host A, B, C, D, and wherein host A is as transmitting terminal, and host B, C, D are as receiving terminal.At first set up socket between host A, B, C, D, host A sends a blocks of data according to user's transmission instruction to host B, C, D, and these data are divided into two groupings (grouping 1 and grouping 2) and send.Host A sends grouping 1 successively and divides into groups 2 to host B, C, D, if host B is all received grouping 1 and grouping 2, then host B is answered a response message; If host C is received grouping 1 and has lost grouping 2 that then host C does not send response message; If main frame D receives grouping 2 and has lost grouping 1 that then main frame D sends the message of request repeat grouping 1 to host A by socket.Like this, host A has been received the message from the request repeat grouping 1 of the response message of host B and main frame D, any response of not receiving host C.Host A is determined the retransmitted content of oneself according to the response of host C, D, because not response of host C, so host A sends last grouping (grouping 2) by socket to it; Because main frame D has sent the message of request repeat grouping 1, then host A sends grouping 1 by socket to it.Host A is determined the retransmitted content of oneself constantly according to the response of receiving terminal, up to receiving terminal response is arranged all.When also not responding if some receiving terminal has surpassed the repeating transmission number of times of regulation, just cancellation and these receiving terminals is connected.If any new feedback message has appearred again in these receiving terminals in this process, host A can connect with this receiving terminal again.If the response message number that host A is received equals 3, then this secondary data sends and finishes.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not breaking away from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (3)

1, a kind of reliable one-to-many data transmission method is applied to comprise at least the local area network (LAN) of a transmitting terminal and two receiving terminals, it is characterized in that, may further comprise the steps:
One, transmitting terminal carries out segmentation with data to be sent, and successively the data after the segmentation is sent to receiving terminal;
Two, receiving terminal begins to receive data;
Three, receiving terminal determines whether to send response signal to transmitting terminal according to reception condition: if certain receiving terminal has successfully received the total data of current transmission, then submit to transmitting terminal and receive successful response message; If certain receiving terminal has been lost certain one piece of data in the whole data, then this receiving terminal sends the message that the request specified packet is retransmitted to transmitting terminal at once; If certain receiving terminal has been lost the final stage of whole data, then this receiving terminal does not send response message;
Four, transmitting terminal is determined retransmitted content according to the response signal of receiving terminal: if the not response in the delay time of regulation of certain receiving terminal, then transmitting terminal sends the final stage data to this receiving terminal; If certain receiving terminal sends the message that the request specified packet is retransmitted, then transmitting terminal sends requested packets once again;
If the response message number that five transmitting terminals receive equates that with the number of receiving terminal then this secondary data sends and all finishes.
2, one-to-many data transmission method according to claim 1 is characterized in that, also comprises after described step 4 when also not responding if certain receiving terminal has surpassed the repeating transmission number of times of regulation, and then transmitting terminal cancellation and this receiving terminal is connected; If receiving terminal has been submitted new feedback message to during disconnect connecting, then transmitting terminal rebulids the step of connecting with this receiving terminal.
3, one-to-many data transmission method according to claim 1 and 2 is characterized in that, described delay time and repeating transmission number of times are dynamic-configuration.
CNB031214843A 2003-03-31 2003-03-31 Reliable one to mang data transmission method Expired - Fee Related CN1272944C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031214843A CN1272944C (en) 2003-03-31 2003-03-31 Reliable one to mang data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031214843A CN1272944C (en) 2003-03-31 2003-03-31 Reliable one to mang data transmission method

Publications (2)

Publication Number Publication Date
CN1534941A CN1534941A (en) 2004-10-06
CN1272944C true CN1272944C (en) 2006-08-30

Family

ID=34285716

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031214843A Expired - Fee Related CN1272944C (en) 2003-03-31 2003-03-31 Reliable one to mang data transmission method

Country Status (1)

Country Link
CN (1) CN1272944C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547134B (en) * 2008-03-27 2011-12-28 北京铭万互联科技有限公司 Method and system for mutually converting UDP connection and TCP connection and transfer server
CN102063565B (en) * 2010-12-24 2014-08-13 深圳市理邦精密仪器股份有限公司 Data transmission method and system thereof
CN102368767B (en) * 2011-09-27 2014-02-26 北京东方网信科技股份有限公司 Internet acceleration method and system based on HFC (hybrid fiber coaxial) network
CN104699058A (en) * 2015-03-03 2015-06-10 上海雷尼威尔技术有限公司 Data communication method applied to safety control system
CN105187370B (en) * 2015-06-05 2019-11-12 北京奇虎科技有限公司 Data processing method and system
CN105406999A (en) * 2015-11-20 2016-03-16 福建星网锐捷安防科技有限公司 Multi-data distribution method and distribution equipment
CN111949000A (en) * 2019-05-17 2020-11-17 株洲中车时代电气股份有限公司 Intelligent locomotive fault diagnosis system and method
CN110798349B (en) * 2019-10-28 2023-02-28 国家计算机网络与信息安全管理中心 Configuration distribution and receiving method, equipment and computer readable storage medium
CN110913431A (en) * 2019-11-27 2020-03-24 深圳云博智联科技有限公司 Data wireless transmission method and device, computer equipment and storage medium
CN113259370B (en) * 2021-06-03 2021-11-02 腾讯科技(深圳)有限公司 Data transmission method, device, equipment, system and readable storage medium

Also Published As

Publication number Publication date
CN1534941A (en) 2004-10-06

Similar Documents

Publication Publication Date Title
CN1183881A (en) Method, device and data communication system for multilink polling
CN2686255Y (en) User equipment for transmitting block set-up transfer using hybrid automatic repeating request
US6574668B1 (en) Retransmission scheme in wireless computer networks
US5245616A (en) Technique for acknowledging packets
CN1290286C (en) Automatic repeat request protocol
CN1272944C (en) Reliable one to mang data transmission method
US7779145B2 (en) Data communication method, data communication system and program
CN1187996C (en) Method for controlling data-flow in communication system
CN101064590A (en) Method of handling packet data in a wireless communications system and related apparatus
CN104518853A (en) Data retransmission method, receiving end and system
CN1114308C (en) Method for distributing radio resource in radio communication system
CN101047615A (en) Control method for Ethernet data flow
CN103095434A (en) Data retransmission control method and device, and terminal equipment
CN112911638B (en) Reliable communication method for optimizing wireless network load congestion by using UDP (user Datagram protocol)
CN101860423A (en) Method and device for retransmission of protocol packet transmission
CN107634823A (en) The data transmission method of transmission control protocol based on network code
CN102420684A (en) Processing method of TCP (Transmission Control Protocol) data stream and communication device
CN1324833C (en) Method for transmitting data packets in a radio-communication system
CN102801692B (en) A kind of transmission control protocol optimization method and system connecting based on division
CN1248465C (en) Management method of data fransmission/receiving butter region in network communication
CN103685387A (en) Method for scheduling HTTP (hyper text transport protocol) request and browser device
CN102106176A (en) Signal transmission method and apparatus for user equipment in mobile communication system
CN101964703A (en) Data retransmission method and system
CN112738229B (en) Communication method for realizing automatic data continuous transmission
CN102201901A (en) Data retransmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
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: 20060830

Termination date: 20210331